#ifndef CUBO_H
#define CUBO_H

#include "Object3D.h"

class Cubo : public Object3D
{
    Q_OBJECT

    float size;

public:
    explicit Cubo(const QVector3D& center = QVector3D(), QObject *parent = 0);
    virtual float intersectionWithLine(QVector3D direction, QVector3D eye);

private:
    virtual void drawGeometry(void);
    bool insideFace(QVector3D point, QVector3D q, float scaledSizePer2);
};

#endif // CUBO_H
